<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>用户登录</TITLE>
<LINK href="../style/login.css" type=text/css rel=stylesheet>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR>
<script type="text/javascript" src="script/jquery.js"></script>
</HEAD>
<BODY id=userlogin_body>
<DIV></DIV>

<DIV id=user_login>
<DL>
	<DD id=user_top>
	<UL>
		<LI class=user_top_l></LI>
		<LI class=user_top_c></LI>
		<LI class=user_top_r></LI>
	</UL>
	<DD id=user_main>
	<UL>
		<LI class=user_main_l></LI>
		<LI class=user_main_c>
		<DIV class=user_main_box>
		<UL>
			<LI class=user_main_text>用户名：</LI>
			<LI class=user_main_input><INPUT class=TxtUserNameCssClass maxLength=20 name="username" id="username" ></LI>
		</UL>
		<UL>
			<LI class=user_main_text>密 码：</LI>
			<LI class=user_main_input><INPUT class=TxtPasswordCssClass type=password name="password" id="password" ></LI>
		</UL>
		<UL>
			<LI class=user_main_text>Cookie：</LI>
			<LI class=user_main_input><SELECT id="expiry" name="expiry">
				<OPTION value="">不保存</OPTION>
				<OPTION value="86400">保存一天</OPTION>
				<OPTION value="2592000">保存一月</OPTION>
				<OPTION value="31104000">保存一年</OPTION>
			</SELECT></LI>
		</UL>
		</DIV>
		</LI>
		<LI class=user_main_r><INPUT class=IbtnEnterCssClass id=IbtnEnter
			style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" onclick='login();' type=image src="images/login/user_botton.gif" name=IbtnEnter></LI>
	</UL>
	<DD id=user_bottom>
	<UL>
		<LI class=user_bottom_l></LI>
		<LI class=user_bottom_c><SPAN style="MARGIN-TOP: 40px">中国移动管理系统&nbsp;&nbsp; <a href="http://www.chinamobile.com">http://www.chinamobile.com</a></SPAN>
		</LI>
		<LI class=user_bottom_r></LI>
	</UL>
	</DD>
</DL>
</DIV>
<SPAN id=ValrUserName style="DISPLAY: none; COLOR: red"></SPAN>
<SPAN id=ValrPassword style="DISPLAY: none; COLOR: red"></SPAN>
<SPAN id=ValrValidateCode style="DISPLAY: none; COLOR: red"></SPAN>
<DIV id=ValidationSummary1 style="DISPLAY: none; COLOR: red"></DIV>

<DIV></DIV>
</FORM>
<script type="text/javascript">
    jQuery(function($){eval($.ajax({type:"POST",url:"login.php",async:"false",data:"action=get_user_cookie"}).responseText);});
	
	function login(){
		var name = $("#username").val();
		var pwd = $("#password").val();
		if(name==""){
			alert("请输入用户名 .");
			$("#username").focus();
			return false;
		}
		if(pwd==""){
			alert("请输入密码.");
			$("#password").focus();
			return false;
		}
		
		$.ajax({
		type : "POST",
		url : "login.php",
		data : "action=login&username="+name+"&password="+pwd+"&expiry="+$("#expiry").val(),
		success : function callback(msg){eval(msg);}
		});
	}
</script>
</BODY>
</HTML>
